<!DOCTYPE html>
{% autoescape true %}
<html>
  	<head>
		<style>
			tr.failure 	{ background-color: red; } 
			tr.succes 	{ background-color: green; } 
		</style>
	</head>
  	<body>

		<p>
		<h2><a href="{{ details[1].url }}">{{ details[1].url }} </a>, ResultCode: {{ details[1].resultCode }}, RegularExpression: {{ details[1].regex }}  </h2>
		</p>

		<table>
		{% for detail in details[2] %}

				{% if detail[1] == True  %}
					<tr class='succes'>
				{% else %}
					<tr class='failure'>			
				{% endif %}

					<td>{{ detail[0] }}</td></tr>


		{% endfor %}
		</table>
	</body>
</html>
{% endautoescape %}
